package pt.ipl.isel.deetc.leic.pdm.g12.yamba;

import android.os.Bundle;
import android.view.Menu;
import android.widget.TextView;

public class DetailActivity extends BaseActivity  {
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.detail);
		
		Bundle bundle = getIntent().getExtras();
		
		((TextView)findViewById(R.id.detailId)).setText("" + (Long)bundle.get("id"));
		((TextView)findViewById(R.id.detailUser)).setText((String)bundle.get("user"));
		((TextView)findViewById(R.id.detailTime)).setText((String)bundle.get("time"));
		((TextView)findViewById(R.id.detailStatus)).setText((String)bundle.get("status"));
	}
	
	@Override
	public boolean onPrepareOptionsMenu(Menu menu) {
		menu.removeItem(R.id.refreshTimeline);
		
		return super.onPrepareOptionsMenu(menu);
	}
}
